package com.jintoufs.dao.hotel;

import com.jintoufs.domain.constants.FullCalendar;
import com.jintoufs.domain.hotel.HotelPrice;

import java.util.List;
import java.util.Map;

public interface HotelPriceMapper {
    int deleteByPrimaryKey(String id);

    int insert(HotelPrice record);

    int insertSelective(HotelPrice record);

    HotelPrice selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HotelPrice record);

    int updateByPrimaryKey(HotelPrice record);

    List<FullCalendar> getPriceCalendar(Map<String,Object> param);
    List<Map<String,Object>> getPriceCalendar2(Map<String,Object> param);
    List<FullCalendar> getPriceCalendarForWeixin(Map<String,Object> param);

    HotelPrice selectByHotelPrice(HotelPrice hotelPrice);

    void updatePrice(HotelPrice hotelPrice);

    void updateReserve(HotelPrice hotelPrice);

    int deleteByRoomId(String hotelid);

    List<HotelPrice> selectByParam(Map<String,Object> param);

    void updateDate(String date);

    Integer getMinReserve(Map<String,Object> params);
}